package com.zmn.oms.common.dio.normal.master;

import com.zmn.oms.common.dio.OmsAppBaseDIO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：工程师抢单
 *
 * @author wangxiaokun
 * @since 2021/07/15 16:17
 */
@Data
public class GrabOrderDIO extends OmsAppBaseDIO implements Serializable {

    private static final long serialVersionUID = -9119947528916105615L;

    @ApiModelProperty(value = "工程师id")
    @NotNull(message = "工程师ID不能为空")
    private Integer masterId;

    @ApiModelProperty(value = "订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty(value = "工单ID")
    @NotNull(message = "工单ID不能为空")
    private Long workId;

    @ApiModelProperty(value = "时间戳版本号")
    @NotNull(message = "版本号不能为空")
    private Long grabVersion;
}
